
export type MenuItemType = {
  menuId: number,
  code: string,
  title: string,
  pMenuId: number | null,
  menuIndex: number
}

export type AddMenuParam = {
  pMenuId: MenuItemType["pMenuId"]
  title: string,
  code: string
  menuIndex: MenuItemType["menuIndex"]
}

export type EditMenuParam = Required<MenuFormParam>

export type MenuFormParam = {
  menuId?: number
} & AddMenuParam

export type PutMenuStateParams = {
  menuIds: Array<MenuItemType["menuId"]>,
  enable: number
}

export type GetMenuParams = {
  enable: number
}